package com.caine.androidtask.ls21.poxy;

import java.io.Serializable;

public class ClientInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;
	private String nikename;
	private String ip;
	private boolean online;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNikename() {
		return nikename;
	}

	public void setNikename(String nikename) {
		this.nikename = nikename;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public boolean isOnline() {
		return online;
	}

	public void setOnline(boolean online) {
		this.online = online;
	}

	public ClientInfo(String id, String nikename, String ip, boolean online) {
		this.id = id;
		this.nikename = nikename;
		this.ip = ip;
		this.online = online;
	}

	public ClientInfo(String id, String nikename, String ip) {
		this.id = id;
		this.nikename = nikename;
		this.ip = ip;
	}

	public ClientInfo(String nikename, String ip) {
		this.nikename = nikename;
		this.ip = ip;
	}

	public ClientInfo() {
	}

	@Override
	public boolean equals(Object obj) {
		// TODO Auto-generated method stub
		ClientInfo c = (ClientInfo) obj;
		if (c.id.equals(this.id))
			return true;
		return false;
	}
}
